package org.fatmansoft.teach.models;

import lombok.Data;

import javax.persistence.*;

//Student与Social的中间表
@Entity
@Data
@Table(name = "student_social_activity",
        uniqueConstraints = {})
public class StudentSocialActivity {

        @Id
        private Integer StudentSocialActivityId;

        @ManyToOne
        @JoinColumn(name = "student_id")
        private Student student;

        @ManyToOne
        @JoinColumn(name = "social_activity_id")
        private SocialActivity socialActivity;
    }
